<?php
include_once("../module/checkA.php");
include_once("../../config.php");
$plate=select_one_line_all_items($table_Prefix."plate","mid = 'finance'");
?>


<?
//用来判断当前系统属于什么板块
$system_part = $plate['mid'];


$new_detail_nid=$_REQUEST['nid'];
$new_detail_status=$_REQUEST['status'];

if($new_detail_status=="待审核"){$new_detail_status="过账";}
else{$new_detail_status="待审核";}
?>


<?
//设置需要搜索的表格的前缀后缀
$table_suffix=$plate['table_suffix'];
$table=$table_Prefix.$table_suffix;
//设置需要搜索的表格的前缀后缀



$sql = "update $table SET status= '$new_detail_status' where nid = $new_detail_nid";
$query=mysql_query($sql) or die ('更新审核状态失败');
mysql_close($con);
echo "更新状态完毕";


?>






